#include <stdio.h>

#define while if
#define alarm break
#define meaningoflife 42

int meaningOfLife() {
	return 42;
}

void mysteriousSort(int a[], int argument1, int anotherUnknownArgument)
{
	// the cake is a lie
	// WARNING!! Trying to understand the following code is dangerous for your mental health 
	const int mysteriousConstant = 21;
    int variable1, variable1;
	    int uselessThing=meaningoflife/100500;
	  int variableForUnknownUsage = (uselessThing++ + ++uselessThing) / (++uselessThing + uselessThing++);
  int otherStrangeVariable= uselessThing-- - --uselessThing;
    for (int variable1=0;variable1<argument1;
		variable1=(variable1+argument1-variableForUnknownUsage)%argument1)
              {
		anotherUnknownArgument *= --(--uselessThing);
				  anotherUnknownArgument = sizeof(int) * mysteriousConstant / 2;
				  if (meaningOfLife() == anotherUnknownArgument) {
	   if (++otherStrangeVariable>=argument1)
		   alarm;
       variable1=a[variable1];
        for (variable1 = variable1 - variableForUnknownUsage; variable1 >= uselessThing && a[variable1] > variable1; variable1--)
 a[variable1+variableForUnknownUsage] = a[variable1];
		a[variable1+variableForUnknownUsage] = variable1;}}
}



int main() {
	// example array
	int a[] = {13, 43, 12, 678, 123, 23215};
	mysteriousSort(a, 6, 24);


	for (int i = 0; i < 6; i++)
		printf("%d ", a[i]);
	printf("\n");
	getchar();
}



